home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2000 July / CD 3 / redhat-6.2.iso / RedHat / instimage / usr / lib / anaconda / iw / congrats.py < prev    next >
Encoding:
Python Source  |  2000-03-08  |  3.0 KB  |  96 lines

  1. from gtk import *
  2. from gnome.ui import *
  3. from iw import *
  4. from translate import _
  5.  
  6. class CongratulationWindow (InstallWindow):        
  7.  
  8.     def __init__ (self, ics):
  9.     InstallWindow.__init__ (self, ics)
  10.  
  11.         ics.setTitle (_("Congratulations"))
  12.         ics.setPrevEnabled (0)
  13.         ics.setNextButton (STOCK_PIXMAP_QUIT, _("Exit"))
  14.         ics.setNextEnabled (1)
  15.     ics.setGrabNext (1)
  16.  
  17.     def getScreen (self):
  18.         self.ics.setHelpEnabled (0)
  19.  
  20.         hbox = GtkHBox (TRUE, 5)
  21.         
  22.         im = self.ics.readPixmap ("done.png")
  23.         if im:
  24.             im.render ()
  25.             pix = im.make_pixmap ()
  26.             a = GtkAlignment ()
  27.             a.add (pix)
  28.             a.set (0.5, 0.5, 1.0, 1.0)
  29.             hbox.pack_start (a, FALSE)
  30.  
  31.     label = GtkLabel(
  32.                      _("Congratulations, installation is complete.\n\n"
  33.                        "Press return to reboot, and be sure to remove your "
  34.                "boot medium as the system reboots, or your system "
  35.                "will rerun the install. For information on fixes which "
  36.                        "are available for this release of Red Hat Linux, "
  37.                        "consult the "
  38.                        "Errata available from http://www.redhat.com/errata.\n\n"
  39.                        "Information on configuring and using your Red Hat "
  40.                "Linux system is contained in the Red Hat Linux "
  41.                "manuals."))
  42.                 
  43.         label.set_line_wrap (TRUE)
  44.         label.set_alignment (0.0, 0.5)
  45.  
  46.         box = GtkVBox (FALSE, 10)
  47.         box.pack_start (label, TRUE, TRUE, 0)
  48.  
  49.         hbox.pack_start (box)
  50.         return hbox
  51.  
  52.  
  53. class ReconfigCongratulationWindow (InstallWindow):        
  54.  
  55.     def __init__ (self, ics):
  56.     InstallWindow.__init__ (self, ics)
  57.  
  58.         ics.setTitle (_("Congratulations"))
  59.         ics.setPrevEnabled (0)
  60.         ics.setNextButton (STOCK_PIXMAP_QUIT, _("Exit"))
  61.         ics.setNextEnabled (1)
  62.     ics.setGrabNext (1)
  63.  
  64.     def getScreen (self):
  65.         self.ics.setHelpEnabled (0)
  66.  
  67.         hbox = GtkHBox (TRUE, 5)
  68.         
  69.         im = self.ics.readPixmap ("done.png")
  70.         if im:
  71.             im.render ()
  72.             pix = im.make_pixmap ()
  73.             a = GtkAlignment ()
  74.             a.add (pix)
  75.             a.set (0.5, 0.5, 1.0, 1.0)
  76.             hbox.pack_start (a, FALSE)
  77.  
  78.         self.ics.cw.todo.writeConfiguration()
  79.  
  80.         label = GtkLabel(_("Congratulations, configuration is complete.\n\n"
  81.                            "For information on fixes which are "
  82.                            "available for this release of Red Hat Linux, consult the "
  83.                            "Errata available from http://www.redhat.com.\n\n"
  84.                            "Information on further configuring your system is available in the post "
  85.                            "install chapter of the Official Red Hat Linux User's Guide."))
  86.         
  87.         label.set_line_wrap (TRUE)
  88.         label.set_alignment (0.0, 0.5)
  89.         
  90.         box = GtkVBox (FALSE, 10)
  91.         box.pack_start (label, TRUE, TRUE, 0)
  92.  
  93.         hbox.pack_start (box)
  94.         return hbox
  95.  
  96.